{extend name="adminheader:header"/}
{block name="content"}
<style type="text/css">
    thead tr th{
        text-align: center;
    }
    tbody tr td{
        text-align: center;
    }
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>会员提现列表</h5>
                    </div>
                    <div class="ibox-content">
                        <form action="{:url('/admin/Withdrawal/index')}" method="post" role="form" class="form-inline" style="padding-bottom:30px;">
                            会员姓名: <input type="text" name="u_name" value="{$u_name|default=''}" placeholder="请输入会员姓名" style="width:150px;" class="form-control" />&nbsp;&nbsp;
                            收款人姓名: <input type="text" name="w_name" value="{$w_name|default=''}" placeholder="请输入收款人姓名" style="width:200px;" class="form-control" />&nbsp;&nbsp;
                            收款人手机号码: <input type="text" name="w_tel" value="{$w_tel|default=''}" placeholder="请输入收款人手机号码" style="width:150px;" class="form-control" />&nbsp;&nbsp;
                            收款人账号: <input type="text" name="w_account" value="{$w_account|default=''}" placeholder="请输入收款人账号" style="width:200px;" class="form-control" />&nbsp;&nbsp;
                            提现状态:
                            <select class="form-control" name="w_status">
                                <option value="">全部</option>
                                <option value="1" {if condition="$w_status eq 1"}selected{/if}>未打款</option>
                                <option value="2" {if condition="$w_status eq 2"}selected{/if}>已打款</option>
                            </select>&nbsp;&nbsp;
                            <input type="submit" class="btn btn-success" value="搜索" style="margin-bottom: 0;"/>
                            <a class="btn btn-danger" href="{:url('/admin/Withdrawal/index')}">清空</a>
                        </form>
                        <div class="table-responsive">
                            <table class="table table-striped table-hover ">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>会员姓名</th>
                                        <th>收款人姓名</th>
                                        <th>收款人手机号码</th>
                                        <th>提现金额</th>
                                        <th>收款人账号</th>
                                        <th>提现状态</th>
                                        <th>提现时间</th>
                                        <th>打款时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                {if condition="$list neq null"}
                                    {volist name="list" id="vo"}
                                        <tr>
                                            <td>{$vo.id}</td> 
                                            <td>{$vo.u_name}</td>
                                            <td>{$vo.w_name}</td>
                                            <td>{$vo.w_tel}</td>
                                            <td>{$vo.w_amount}</td>
                                            <td>{$vo.w_account}</td>
                                            {if condition="$vo.w_status eq 1"}
                                                <td>未打款</td>
                                            {elseif condition="$vo.w_status eq 2"/}
                                                <td style="color: #0000FF;">已打款</td>
                                            {/if}
                                            <td>{:date('Y-m-d H:i',$vo['addtime'])}</td>
                                            {if condition="$vo.w_time eq null"}
                                                <td></td>
                                            {else/}
                                                <td>{:date('Y-m-d H:i',$vo['w_time'])}</td>
                                            {/if}
                                            <td>
                                                <a href="{:url('/admin/Withdrawal/edit',array('id'=>$vo['id']))}" class="btn btn-primary">编辑</a>
                                                <a href="{:url('/admin/Withdrawal/delete',array('id'=>$vo['id']))}" class="btn btn-danger js-ajax-delete">删除</a>
                                            </td>
                                        </tr>
                                    {/volist}
                                {else/}
                                    <tr>
                                        <td style="font-size:20px;text-align:center">暂无数据</td>
                                    </tr>
                                {/if}
                                </tbody>
                            </table>
                            <div class="text-left pages">
                                {$page}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script src="/admin/js/admin.js"></script>
{/block}